home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 2: Applications
/
Linux Cubed Series 2 - Applications.iso
/
editors
/
emacs
/
xemacs
/
xemacs-1.004
/
xemacs-1
/
xemacs-19.13
/
lisp
/
oobr
/
tree-nx
/
Line.m
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-03-25
|
265 b
|
24 lines
#import "Line.h"
@implementation Line
- setStart:(NXPoint *)s end:(NXPoint *)e
{
start.x = s->x;
start.y = s->y;
end.x = e->x;
end.y = e->y;
return self;
}
- render
{
PSmoveto(start.x, start.y);
PSlineto(end.x, end.y);
PSstroke();
return self;
}
@end